//
//  CTestViewController.swift
//  Drop
//
//  Created by hushaohua on 2018/9/23.
//  Copyright © 2018年 init. All rights reserved.
//

import UIKit

class CTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.view.backgroundColor = UIColor.white;
        self.startDates(begin: Date(timeIntervalSinceNow: -100000), end: Date(timeIntervalSinceNow: -100));
        self.view.addSubview(self.slider);
    }
    
    func startDates(begin:Date, end:Date){
        
    }
    
    lazy var slider:DClockSlider = {
        var slider = DClockSlider(frame: CGRect(x:20, y:80, width:300, height:300));
        slider.backgroundColor = UIColor(white: 0.8, alpha: 1);
        
        //        slider.translatesAutoresizingMaskIntoConstraints = false;
        return slider;
    }();

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
